﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace System.DataProvider
{
    public interface IDataProvider
    {

        /// <param name="Query">Query to run</param>
        int ExcuteQuery(string Query);


        /// <param name="procName">Name of the proc to excute</param>
        /// <param name="dataArray">data required to run the proc</param>
        void ExcuteProc(string procName, object[] dataArray);


        /// <param name="procName">Name of the proc to excute</param>
        /// <param name="dataArray">Data need to excute the proc</param>
        DataTable GetDataTable(string procName, object[] dataArray);

        /// <param name="procName">Name of the proc to excute</param>
        /// <param name="dataArray">Data need to excute the proc</param>
        DataSet GetDataSet(string procName, object[] dataArray);



    }
}
